do not show comments by default in get-env #297
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
depends on https://github.com/signadot/libconnect/pull/149
26-01-19 scott@air cli % ./signadot sb get-env -h
Get environment from a (local) sandbox
Usage:
signadot sandbox get-env NAME [flags]
Flags:
-c, --container string container
-h, --help help for get-env
-l, --local string local workload name (default to first)
-s, --show-source show source in comments
Global Flags:
--config string config file (default is $HOME/.signadot/config.yaml)
--debug enable debug output
-o, --output string output format (json|yaml)
26-01-19 scott@air cli % unset MYSQL_ADDR
26-01-19 scott@air cli % eval $(./signadot sb get-env local-env)
26-01-19 scott@air cli % echo $MYSQL_ADDR
mysql.:3306
26-01-19 scott@air cli % ./signadot sb get-env local-env
export SIGNADOT_BASELINE_KIND='Deployment'
export SIGNADOT_BASELINE_NAMESPACE='hotrod-istio'
export SIGNADOT_BASELINE_NAME='location'
export MYSQL_ADDR='mysql.:3306'
export MYSQL_PASS='abc'
export REDIS_ADDR='redis.:6379'
export OTEL_EXPORTER_OTLP_ENDPOINT='http://jaeger.:4318'
export SIGNADOT_SANDBOX_NAME='local-env'
export SIGNADOT_SANDBOX_ROUTING_KEY='kmffhhn1kvvly'
26-01-19 scott@air cli % ./signadot sb get-env local-env -s
export SIGNADOT_BASELINE_KIND='Deployment' # constant
export SIGNADOT_BASELINE_NAMESPACE='hotrod-istio' # fieldRef: metadata.namespace
export SIGNADOT_BASELINE_NAME='location' # constant
export MYSQL_ADDR='mysql.:3306' # constant
export MYSQL_PASS='abc' # constant
export REDIS_ADDR='redis.:6379' # constant
export OTEL_EXPORTER_OTLP_ENDPOINT='http://jaeger.:4318' # constant
export SIGNADOT_SANDBOX_NAME='local-env' # constant (override)
export SIGNADOT_SANDBOX_ROUTING_KEY='kmffhhn1kvvly' # constant (override)
26-01-19 scott@air cli %